package com.tt.dp.component.test;

import com.tt.dp.component.Menu;
import com.tt.dp.component.MenuComponent;
import com.tt.dp.component.MenuItem;
import com.tt.dp.component.Waitress;

public class MenuTestDrive {

    public static void main(String[] args) {

        MenuComponent breakfastMenu = new Menu("PANCAKE HOUSE MENU", "Breakfast");
        MenuComponent dinerMenu = new Menu("DINER MENU", "Lunch");
        MenuComponent cafeMenu = new Menu("CAFE MENU", "Dinner");
        MenuComponent dessertMenu = new Menu("DESSERT MENU", "Dessert of course");

        MenuComponent allMenus = new Menu("ALL MENUS", "All Menus Combined");

        allMenus.add(breakfastMenu);
        allMenus.add(dinerMenu);
        allMenus.add(cafeMenu);

        dinerMenu.add(new MenuItem("Pasta", "Spaghetti with Marinara Sauce, and a slice of sourdough bread", 3.89, true));

        dinerMenu.add(dessertMenu);

        dessertMenu.add(new MenuItem("Apple Pie","Apple pie with a flakey crust, topped with vanilla ice cream",1.59,true));

        Waitress waitress = new Waitress(allMenus);

//        waitress.printMenu();
        waitress.printVegetarianMenu();
    }
}
